#include<stdio.h>
int main()
{
    float a,b,c;
    scanf("%f,%f",&a,&b);
    printf("----------------------\n");
    if(a>b)
    {
        c=a;//从小到大要这么排序  if(a>b) c=a-----a=b------b=c反之就是从大到小，记住反例即可
        a=b;
        b=c;

    }
    printf("%3.1f,%3.1f\n",a,b);
    return 0;

}